<?php
require_once('./wp-admin/includes/user.php');

$user_info = get_userdata($valgt_medlem);
?>
<form class="adminButtons" method="post" action="<?php the_permalink() ?>">
    <?php if (current_user_can('delete_users')) { ?>
    <h3>Er du sikker på at du vil slette brukeren <?php echo "$user_info->first_name $user_info->last_name" ?>?</h3>
    <input name="action" type="submit" value="Bekreft"/>
    <?php } else { ?>
    <h3>Du har ikke rettigheter til å slette medlemmer.</h3>
    <?php } ?>
    <input name="action" type="submit" value="Avbryt"/>
    <input name="idnum" type="hidden" value="<?php echo $valgt_medlem ?>"/>
    <input name="til-side" type="hidden" value="profil"/>
</form>